<template>
	<view class="container">
		<uni-card title="工作人员信息" style="margin-top: 0px;">
			<view class="" style="display: flex;align-items: center;">
				<image src="/static/tx.png" style="height: 70px;width: 70px;" mode=""></image>
				<view class="" style="margin-left: 10px;">张三</view>
			</view>
			<view class="item" style="margin-top: 5px;">地址：南湾街道厦村社区恒大国香山花园业委会</view>
			<view class="item" style="margin-top: 5px;">联系电话：{{item.phone}}</view>
		</uni-card>
		<button type="primary" @click="submit" style="margin-top: 20px;margin-bottom: 20px;">拨打电话</button>
		<comment text="工作人员评价"></comment>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				item: {}
			};
		},
		onNavigationBarButtonTap() {
			uni.shareWithSystem({
				summary: this.item.phone
			})
		},
		onLoad(item) {
			this.item = JSON.parse(item.data)
			console.log(this.item);
		},
		onReady() {

		},
		onShow() {

		},
		methods: {
			submit() {
				uni.makePhoneCall({
					phoneNumber: this.item.phone
				})
			}
		}
	};
</script>

<style lang="scss">

</style>

